#pragma once
#include "baseid.h"


#define VECTOR_LENGTH 9
#define MINI 0.0000000001f
//#define COS
//#define OVERLAP
#define EUCLIDEN
#define MAX_DIS 100

class CReg;
class CVectorKey:
	public CBaseKey
{
	friend bool operator == (const CVectorKey  &cLeft,const CVectorKey  & cRight);
	static CReg* s_pRegExp;
	static int s_nStatus;
	static void Init();
	static int s_nNumber;
public:
	CVectorKey(void);
	~CVectorKey(void);
	string ToString() ;
	bool FromString(const string & strValue);
	static int GetDistance(const CVectorKey& cLeft,const CVectorKey& cRight);
	static int Compare(const CVectorKey& cLeft,const CVectorKey& cRight);
	CVectorKey(const CVectorKey & tmp);
	CVectorKey(const string & tmp);
	CVectorKey& operator = (const CVectorKey & cTmp);
private:	
	float m_rgId[VECTOR_LENGTH];
};
